{% from "modify_binary.html" import data_editor as base_editor %}

{% macro basic_data_editor(form, item_name) %}
    <input type="button" onclick="moinFontChange()" value="{{ _('Toggle font width') }}" class="moin-button moin-textarea-font" >
    {{ gen.textarea(form['data_text'], rows=form.rows|string, cols=form.cols|string, class="moin-edit-content", **kwargs) }}
    {{ base_editor(form) }}
    <br />
{% endmacro %}
